﻿<Page
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:VMuktiControls="clr-namespace:VMukti.Presentation.Controls" xmlns:d="http://schemas.microsoft.com/expression/blend/2006" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" x:Class="VMukti.Presentation.pgHome" Name="HomePage"
Title="VMukti" Margin="0,0,0,0" Background="#FFFFFFFF" >

    <Page.Resources>


        <Storyboard x:Key="OnOpenClick">
            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="grdBar" Storyboard.TargetProperty="(FrameworkElement.Width)">
                <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
                <SplineDoubleKeyFrame KeyTime="00:00:00.5000000" Value="1024"/>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
        <Storyboard x:Key="OnCloseClick">
            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="grdBar" Storyboard.TargetProperty="(FrameworkElement.Width)">
                <SplineDoubleKeyFrame KeyTime="00:00:00" Value="1024"/>
                <SplineDoubleKeyFrame KeyTime="00:00:00.5000000" Value="0"/>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>

    </Page.Resources>


    <ScrollViewer VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto" VerticalContentAlignment="Stretch" Height="Auto" Width="Auto" Focusable="False" Background="{DynamicResource Background}" HorizontalContentAlignment="Stretch" Grid.IsSharedSizeScope="True" CanContentScroll="True">
        <Canvas Name="cnvMain" Focusable="False" Background="{DynamicResource Background}" Width="1010" Height="700" >
            <Canvas Name="cnvMain2" Focusable="False" Height="Auto" Canvas.Left="0" Canvas.Top="0" Background="{DynamicResource Background}" Grid.IsSharedSizeScope="True" ScrollViewer.CanContentScroll="True" >
                <Grid Height="{Binding Path=Height, ElementName=cnvMain}" Width="{Binding Path=Width, ElementName=cnvMain, Mode=Default}" VerticalAlignment="Stretch" Name="grdMain" Canvas.Top="0" Canvas.Left="0">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Name="colDef1" Width="0.21*"/>
                        <ColumnDefinition Name="colDef2" Width="*"/>
                        <ColumnDefinition Name="colDef3" Width="0.20*"/>
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition Name="rowDef1" Height="25"/>
                        <RowDefinition Name="rowDef2" Height="0.239*"/>
                        <RowDefinition Name="rowDef3" Height="0.717*"/>
                    </Grid.RowDefinitions>

                    <GridSplitter Focusable="False" Width="2" Grid.Column="1" Grid.Row="1" Grid.RowSpan="2" HorizontalAlignment="Left"  Background="#FFCDCDCD"  />
                    <GridSplitter Visibility="Collapsed" Name="gsBuddy" Focusable="False" Width="2" Grid.Column="1" Grid.Row="1" Grid.RowSpan="2" HorizontalAlignment="Right" Background="#FFCDCDCD" />

                    <Grid Focusable="False" Grid.Row="0" Grid.ColumnSpan="3" Height="25" HorizontalAlignment="Stretch" Width="{Binding Path=Width, ElementName=cnvMain, Mode=Default}" x:Name="grdBar" Background="{DynamicResource Title1}" >
                        <Button Focusable="False" x:Name="btnMExp" Click="btnMExp_Click" Style="{DynamicResource BtnModuleExplorer}" Width="135" Content="Module Explorer" Margin="25,2,0,0" FontSize="12" FontWeight="SemiBold" Cursor="Hand" HorizontalAlignment="Left" />
                        <Button Visibility="Collapsed" Focusable="False" x:Name="btnBList" Click="btnBList_Click" Style="{DynamicResource BtnBuddies}" Width="105" Height="23" Content="Buddy List" Margin="160,2,0,0" FontWeight="SemiBold" FontSize="12" Cursor="Hand" HorizontalAlignment="Left" Background="{DynamicResource Title1}" />
                        <TextBlock Visibility="Collapsed" IsEnabled="True" x:Name="tblkTheme" Width="60" Height="23" Margin="262,2,0,0" FontSize="12" FontWeight="SemiBold" Text="Themes" TextWrapping="Wrap" Padding="2,3,2,2" HorizontalAlignment="Left" Foreground="#FF000000"/>

                        <ComboBox Visibility="Collapsed" ClipToBounds="True" SnapsToDevicePixels="True" IsReadOnly="True" IsSynchronizedWithCurrentItem="True" FontSize="12" FontWeight="SemiBold" VerticalContentAlignment="Center" x:Name="cmbThemes" Width="140" Height="23" Grid.IsSharedSizeScope="True" Margin="322,2,0,0" HorizontalAlignment="Left" Background="{x:Null}" Focusable="False" ToolTip="Select Theme">
                            <!--<ComboBoxItem Background="{x:Null}" x:Name="CallCenter1" Focusable="False" Tag="Call Center" >
                                <StackPanel Background="{x:Null}" Width="133" Orientation="Horizontal">
                                    <Image Height="16" x:Name="CallCenter" Source="Images\CallCenter.ico" Stretch="Uniform" OpacityMask="{x:Null}" />
                                    <TextBlock Width="108" Focusable="False" HorizontalAlignment="Left" Margin="10,0,0,0" VerticalAlignment="Bottom" Height="16" Grid.IsSharedSizeScope="False" ScrollViewer.CanContentScroll="False" FontSize="12" Padding="0,0,0,0" Text="Call Center" TextAlignment="Left" Background="{x:Null}" SnapsToDevicePixels="False"/>
                                </StackPanel>
                            </ComboBoxItem>-->
                            <ComboBoxItem Background="{x:Null}" x:Name="Meeting1" Focusable="False" Tag="Meeting" >
                                <StackPanel Orientation="Horizontal" Background="{x:Null}" Width="133">
                                    <Image Height="16" x:Name="Meeting" Source="Images\Meeting.png" Stretch="Uniform" OpacityMask="{x:Null}" />
                                    <TextBlock Width="108" Focusable="False" HorizontalAlignment="Left" Margin="10,0,0,0" VerticalAlignment="Bottom" Height="16" Grid.IsSharedSizeScope="False" ScrollViewer.CanContentScroll="False" FontSize="12" Padding="0,0,0,0" Text="Meeting" TextAlignment="Left" Background="{x:Null}" SnapsToDevicePixels="False"/>
                                </StackPanel>
                            </ComboBoxItem>
                        </ComboBox>
                        <Rectangle HorizontalAlignment="Left" Margin="321,2,0,-2" Width="142"  StrokeThickness="1" RadiusX="2" RadiusY="2" Focusable="False" Height="25"/>
                        <TextBlock Visibility="Collapsed" IsEnabled="True" x:Name="tblkUserName" Height="23" Margin="0,2,197,0" FontSize="12" FontWeight="SemiBold" Text="Welcome! (User ID)" TextWrapping="Wrap" Padding="2,3,2,2" Foreground="#FF000000" d:LayoutOverrides="Height" HorizontalAlignment="Right" Width="140"/>
                        <Button Visibility="Collapsed" Focusable="False" x:Name="btnSettings" Height="23" Style="{DynamicResource BtnSettings}" Content="Settings" Margin="0,2,110,0" FontSize="12" FontWeight="SemiBold" Cursor="Hand" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch"  Click="btnSettings_Click" d:LayoutOverrides="Height" HorizontalAlignment="Right" Width="80"/>
                        <Button Visibility="Collapsed" Focusable="False" x:Name="btnLogin"  Width="84" Height="23" Style="{DynamicResource BtnLogin}" Content="Sign In" Margin="0,2,5,0" FontSize="12" FontWeight="Bold" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" Cursor="Hand" HorizontalAlignment="Right" Click="btnLogin_Click"/>
                        <Button Visibility="Collapsed" Focusable="False" x:Name="btnConsole"  Width="84" Height="23" Content="Console" Style="{DynamicResource BtnSettings}" Margin="0,2,350,0" FontSize="12" FontWeight="Bold" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" Cursor="Hand" HorizontalAlignment="Right" Click="btnConsole_Click"/>
                    </Grid>

                    <ScrollViewer Focusable="False" Name="scrViewLogin" Margin="0,0,0,0" Grid.Column="0" Grid.RowSpan="2" HorizontalAlignment="Stretch" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" Grid.Row="1" >
                        <VMuktiControls:CtlModules x:Name="objModules" EntCloseModule="objModules_EntCloseModule" />
                    </ScrollViewer>
                    <ScrollViewer Focusable="False" Name="scrViewTab" Height="Auto" Width="Auto" Margin="3,0,3,0" Grid.Column="1" Grid.RowSpan="2" HorizontalAlignment="Stretch" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" Grid.Row="1" VerticalAlignment="Stretch"/>

                    <ScrollViewer Visibility="Collapsed" Focusable="False" Name="scrViewBuddy" Margin="0,0,0,0" Grid.Column="2" Grid.RowSpan="2" HorizontalAlignment="Stretch" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" Grid.Row="1">
                        <VMuktiControls:CtlBuddies x:Name="objBuddies" EntCloseBuddies="objBuddies_EntCloseBuddies" />
                    </ScrollViewer>

                </Grid>
                <Button Name="btnPane" Width="25" Height="23" HorizontalAlignment="Left" VerticalAlignment="Top" Canvas.Top="2" Canvas.Left="0" Content="" Click="btnPane_Click" Style="{DynamicResource ArrowButtons}" RenderTransformOrigin="0.5,0.5" ToolTip="Main menu..."  >
                    <Button.RenderTransform>
                        <TransformGroup>
                            <ScaleTransform ScaleX="-1" ScaleY="1"/>
                            <SkewTransform AngleX="0" AngleY="0"/>
                            <RotateTransform Angle="0"/>
                            <TranslateTransform X="0" Y="0"/>
                        </TransformGroup>
                    </Button.RenderTransform>
                </Button>
            </Canvas>
            <Canvas Name="cnvSettings" Width="1024" Height="768" Visibility="Collapsed" Background="#99000000">
                <VMuktiControls:CtlSettings x:Name="ctlSettings" Height="480" Width="640" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Canvas.Left="192" Canvas.Top="100" Background="{DynamicResource Background}"/>
            </Canvas>
        </Canvas>
    </ScrollViewer>
</Page>